package one;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test1
 * Package: one
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-08-15
 * Time: 15:52
 */

public class Test1 {
    public static void main(String[] args) {

        //1.数组元素默认初始值
        int[] arr1 = new int[3];
        System.out.println(arr1[0]); //0

        double[] arr2 = new double[3];
        System.out.println(arr2[0]); //0.0

        boolean[] arr3 = new boolean[3];
        System.out.println(arr3[0]); //false

        char[] arr4 = new char[3];
        System.out.println(arr4[0]); //0

        //判断可以进来 说明是0 "\u0000"
        if (arr4[0] == 0 ){
            System.out.println("111");
        }

        String[] arr6 = new String[9];
        System.out.println(arr6[0]); //null 不是"null"








        //2.数组的内存解析

    }
}
